<template>
  <div class="box">
    <el-breadcrumb separator=">">
      <el-breadcrumb-item :to="{ path: '/login'}" replace>首页</el-breadcrumb-item>
      <el-breadcrumb-item :to="{ path: '/login/shop'}" replace>商户管理</el-breadcrumb-item>
      <el-breadcrumb-item :to="{ path: '/login/shop'}" replace>商户信息汇总</el-breadcrumb-item>
      <el-breadcrumb-item>商户类别</el-breadcrumb-item>
    </el-breadcrumb>
    <div class="tableBox">
      <div class="tableTitle">商户类别更改</div>
      <div class="searchBox">
        <el-form ref="form" size="mini" inline>
          <div class="block">
            <el-form-item>
              <export-excel :tHeader="tHeader" :filterVal="filterVal" :tableData="tableData"></export-excel>
            </el-form-item>
          </div>
        </el-form>
      </div>
      <el-table :data="tableData">
        <el-table-column prop="shopId" label="商家编号" align="center"></el-table-column>
        <el-table-column prop="shopType" label="当前类别" align="center"></el-table-column>
        <el-table-column label="更新后类别" align="center">
          <template slot-scope="data">
            <el-select v-model="shopType" placeholder="请选择">
              <el-option v-for="item in shopTypeOptions" :key="item.value" :label="item.label" :value="item.value">
              </el-option>
            </el-select>
          </template>
        </el-table-column>
        <el-table-column prop="shopMobile" label="商家账号" align="center"></el-table-column>
        <el-table-column prop="shopName" label="商家名称" align="center"></el-table-column>
        <el-table-column prop="shopRegion" label="所属区域" align="center"></el-table-column>
        <el-table-column prop="shopAddress" label="详细地址" align="center"></el-table-column>
        <el-table-column prop="userName" label="联系人" align="center"></el-table-column>
        <el-table-column prop="userMobile" label="联系方式" align="center"></el-table-column>
        <el-table-column label="操作" align="center">
          <template slot-scope="data">
            <span @click="modifyShopType(data.row)" class="colors">更新</span>
          </template>
        </el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script type="text/ecmascript-6">
  import exportExcel from 'components/exportExcel'

  export default {
    data () {
      return {
        tableData: [],
        shopTypeOptions: [],
        shopType: '',
        tHeader: [],
        filterVal: []
      }
    },
    created () {
    },
    methods: {
      modifyShopType (item) {
      }
    },
    components: {
      exportExcel
    }
  }
</script>

<style lang="less" ref="stylesheet/less" scoped>

</style>
